package it.davial.mgwt.client;


import java.io.Serializable;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="PHOTO")
public class Photo   implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4343814560887276996L;

	@Id
	@Column(name="ID_PHOTO")
	private int idPhoto;
	
	@Column(name="ID_VISIT")
	private String idVisit;

	@Column(name="ID_AREA")
	private String idArea;
	
	@Column(name="DESC_PHOTO")
	private String descPhoto;
	
	@Column(name="NOTE_PHOTO")
	private String notePhoto;
	
	@Column(name="PHOTO")
	private String photo;

		
	@Column(name="DATA_INS")
	private String dataInsert;
	
	@Column(name="CODE_USER_INS")
	private String codeUserInsert;

	@Column(name="DATA_UPD")
	private String dataUpdate;

	@Column(name="CODE_USER_UPD")
	private String codeUserUpdate;

	@Column(name="STATE")
	private int state;
	
	
	public String getDataInsert() {
		return dataInsert;
	}

	
	public void setDataInsert(String dataInsert)  {
		this.dataInsert = dataInsert;
	}

	public String getCodeUserInsert() {
		return codeUserInsert;
	} 

	public void setCodeUserInsert(String codeUserInsert) {
		this.codeUserInsert = codeUserInsert;
	}

	public String getDataUpdate() {
		return dataUpdate;
	}

	public void setDataUpdate(String dataUpdate)  {
		this.dataUpdate = dataUpdate;
	}

	public String getCodeUserUpdate() {
		return codeUserUpdate;
	}

	public void setCodeUserUpdate(String codeUserUpdate) {
		this.codeUserUpdate = codeUserUpdate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
	public int getIdPhoto() {
		return idPhoto;
	}

	public void setIdPhoto(int idPhoto) {
		this.idPhoto = idPhoto;
	}

	public String getIdVisit() {
		return idVisit;
	}

	public void setIdVisit(String idVisit) {
		this.idVisit = idVisit;
	}

	public String getIdArea() {
		return idArea;
	}

	public void setIdArea(String idArea) {
		this.idArea = idArea;
	}

	public String getDescPhoto() {
		return descPhoto;
	}

	public void setDescPhoto(String descPhoto) {
		this.descPhoto = descPhoto;
	}

	public String getNotePhoto() {
		return notePhoto;
	}

	public void setNotePhoto(String notePhoto) {
		this.notePhoto = notePhoto;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Override
	public String toString() {
		return "Photo [idPhoto=" + idPhoto + ", idVisit=" + idVisit
				+ ", idArea=" + idArea + ", descPhoto=" + descPhoto
				+ ", notePhoto=" + notePhoto + ", photo=" + photo
				+ ", dataInsert="
				+ dataInsert + ", codeUserInsert=" + codeUserInsert
				+ ", dataUpdate=" + dataUpdate + ", codeUserUpdate="
				+ codeUserUpdate + ", state=" + state + "]";
	}

	
	
}
